Optimal. Leaf size=113 \[ -\frac {43 \log \left (3 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d}+\frac {43 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )+3 \sin \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d}-\frac {5 \cos (c+d x)}{32 d (3+5 \sin (c+d x))^2}+\frac {45 \cos (c+d x)}{512 d (3+5 \sin (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2743, 2833, 12,
2739, 630, 31} \begin {gather*} \frac {45 \cos (c+d x)}{512 d (5 \sin (c+d x)+3)}-\frac {5 \cos (c+d x)}{32 d (5 \sin (c+d x)+3)^2}-\frac {43 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )+3 \cos \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d}+\frac {43 \log \left (3 \sin \left (\frac {1}{2} (c+d x)\right )+\cos \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 630
Rule 2739
Rule 2743
Rule 2833
Rubi steps
\begin {align*} \int \frac {1}{(3+5 \sin (c+d x))^3} \, dx &=-\frac {5 \cos (c+d x)}{32 d (3+5 \sin (c+d x))^2}+\frac {1}{32} \int \frac {-6+5 \sin (c+d x)}{(3+5 \sin (c+d x))^2} \, dx\\ &=-\frac {5 \cos (c+d x)}{32 d (3+5 \sin (c+d x))^2}+\frac {45 \cos (c+d x)}{512 d (3+5 \sin (c+d x))}+\frac {1}{512} \int \frac {43}{3+5 \sin (c+d x)} \, dx\\ &=-\frac {5 \cos (c+d x)}{32 d (3+5 \sin (c+d x))^2}+\frac {45 \cos (c+d x)}{512 d (3+5 \sin (c+d x))}+\frac {43}{512} \int \frac {1}{3+5 \sin (c+d x)} \, dx\\ &=-\frac {5 \cos (c+d x)}{32 d (3+5 \sin (c+d x))^2}+\frac {45 \cos (c+d x)}{512 d (3+5 \sin (c+d x))}+\frac {43 \text {Subst}\left (\int \frac {1}{3+10 x+3 x^2} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{256 d}\\ &=-\frac {5 \cos (c+d x)}{32 d (3+5 \sin (c+d x))^2}+\frac {45 \cos (c+d x)}{512 d (3+5 \sin (c+d x))}+\frac {129 \text {Subst}\left (\int \frac {1}{1+3 x} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d}-\frac {129 \text {Subst}\left (\int \frac {1}{9+3 x} \, dx,x,\tan \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d}\\ &=-\frac {43 \log \left (3+\tan \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d}+\frac {43 \log \left (1+3 \tan \left (\frac {1}{2} (c+d x)\right )\right )}{2048 d}-\frac {5 \cos (c+d x)}{32 d (3+5 \sin (c+d x))^2}+\frac {45 \cos (c+d x)}{512 d (3+5 \sin (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.33, size = 180, normalized size = 1.59 \begin {gather*} \frac {-43 \log \left (3 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )+43 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )+3 \sin \left (\frac {1}{2} (c+d x)\right )\right )+\frac {40}{\left (3 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2}-\frac {40}{\left (\cos \left (\frac {1}{2} (c+d x)\right )+3 \sin \left (\frac {1}{2} (c+d x)\right )\right )^2}+\sin \left (\frac {1}{2} (c+d x)\right ) \left (-\frac {60}{3 \cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )}-\frac {180}{\cos \left (\frac {1}{2} (c+d x)\right )+3 \sin \left (\frac {1}{2} (c+d x)\right )}\right )}{2048 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 100, normalized size = 0.88
method | result | size |
derivativedivides | \(\frac {\frac {25}{128 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )^{2}}-\frac {15}{512 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )}-\frac {43 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )}{2048}-\frac {25}{1152 \left (3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {155}{4608 \left (3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {43 \ln \left (3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2048}}{d}\) | \(100\) |
default | \(\frac {\frac {25}{128 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )^{2}}-\frac {15}{512 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )}-\frac {43 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )}{2048}-\frac {25}{1152 \left (3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}+\frac {155}{4608 \left (3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {43 \ln \left (3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2048}}{d}\) | \(100\) |
risch | \(\frac {387 i {\mathrm e}^{2 i \left (d x +c \right )}+215 \,{\mathrm e}^{3 i \left (d x +c \right )}-325 \,{\mathrm e}^{i \left (d x +c \right )}-225 i}{256 \left (5 \,{\mathrm e}^{2 i \left (d x +c \right )}-5+6 i {\mathrm e}^{i \left (d x +c \right )}\right )^{2} d}-\frac {43 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+\frac {4}{5}+\frac {3 i}{5}\right )}{2048 d}+\frac {43 \ln \left (-\frac {4}{5}+\frac {3 i}{5}+{\mathrm e}^{i \left (d x +c \right )}\right )}{2048 d}\) | \(109\) |
norman | \(\frac {\frac {55}{256 d}+\frac {3245 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2304 d}-\frac {125 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{768 d}+\frac {1225 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{768 d}}{\left (3 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+10 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )^{2}}-\frac {43 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+3\right )}{2048 d}+\frac {43 \ln \left (3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2048 d}\) | \(119\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 195, normalized size = 1.73 \begin {gather*} \frac {\frac {40 \, {\left (\frac {735 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {649 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {75 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + 99\right )}}{\frac {60 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {118 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {60 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {9 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + 9} + 387 \, \log \left (\frac {3 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right ) - 387 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 3\right )}{18432 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 133, normalized size = 1.18 \begin {gather*} -\frac {43 \, {\left (25 \, \cos \left (d x + c\right )^{2} - 30 \, \sin \left (d x + c\right ) - 34\right )} \log \left (4 \, \cos \left (d x + c\right ) + 3 \, \sin \left (d x + c\right ) + 5\right ) - 43 \, {\left (25 \, \cos \left (d x + c\right )^{2} - 30 \, \sin \left (d x + c\right ) - 34\right )} \log \left (-4 \, \cos \left (d x + c\right ) + 3 \, \sin \left (d x + c\right ) + 5\right ) + 1800 \, \cos \left (d x + c\right ) \sin \left (d x + c\right ) + 440 \, \cos \left (d x + c\right )}{4096 \, {\left (25 \, d \cos \left (d x + c\right )^{2} - 30 \, d \sin \left (d x + c\right ) - 34 \, d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1227 vs.
\(2 (102) = 204\).
time = 1.71, size = 1227, normalized size = 10.86 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.20, size = 107, normalized size = 0.95 \begin {gather*} -\frac {\frac {40 \, {\left (75 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 649 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 735 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 99\right )}}{{\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 10 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3\right )}^{2}} - 387 \, \log \left ({\left | 3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) + 387 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3 \right |}\right )}{18432 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.73, size = 115, normalized size = 1.02 \begin {gather*} \frac {-\frac {125\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{6912}+\frac {3245\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{20736}+\frac {1225\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{6912}+\frac {55}{2304}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+\frac {20\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{3}+\frac {118\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{9}+\frac {20\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{3}+1\right )}-\frac {43\,\mathrm {atanh}\left (\frac {3\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{4}+\frac {5}{4}\right )}{1024\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________